throw good money after bad

Waste more money in hopes of recouping previous losses, as in Hiring him to improve that software is throwing good money after bad; it's based on an older operating system and will soon be obsolete. [ Late 1800s ]